var appData = getApp().globalData;


Page({
  data: {
    sUrl: appData.sUrl,
    bottonClr: [
      "white", "white", "white", "white", "white", "white", "white", "white", "white", "white"
    ],
    setArr: [
      { id: "1", name: "姓名", img: "option", margin: "0" },
      { id: "2", name: "性别", img: "medal", margin: "0" },
      { id: "3", name: "班级", img: "ticket", margin: "0" },
      { id: "4", name: "联系方式1", img: "favorite", margin: "0" },
      { id: "5", name: "联系方式2", img: "chat", margin: "0" },
    ],
  },


  //******************************************
  CA: function (e) {
    var btn = e.currentTarget.id
    this.setData({ [`bottonClr[${btn}]`]: "#ddd" })
  },

  CB: function (e) {
    var btn = e.currentTarget.id
    this.setData({ [`bottonClr[${btn}]`]: "white" })

    /*console.log('转入')*/
  },


  onShow: function () {

  },


  onShareAppMessage: function () {

  }
})